<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
 <head> 
  <meta property="qc:admins" content="542536566763012535145636" /> 
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 
  <title>登录 - 孑然记录丶</title> 
  <!-- <meta name="keywords" content="征文,有奖征文,征文比赛,征文比赛网,有奖征文网,征文大赛,小清新图片,每日一笑,把耳朵叫醒,享笑网" /> 
  <meta name="description" content="享笑网是紧贴生活的小清新网站，近期上线的有奖征文比赛更是受到了大家的热捧，给一些热爱写作的网友提供了一个很好的平台。享笑网的宗旨是分享笑，分享爱，让更多的人在欢声笑语下得到爱的滋润为其永恒不变的主题。网站提供时下每周一期的有奖征文，小清新图片、原创文章，搞笑段子。致力打造一片供人们心灵交流的绿洲。" /> --> 
  <link rel="stylesheet" type="text/css" href="__PUBLIC__/home/css/common.css?v7.1" /> 
  <link rel="stylesheet" type="text/css" href="__PUBLIC__/home/css/public.css" /> 
  <link href="images/favicon.ico?v=0.1" mce_href="http://www.sharesmile.cn/favicon.ico" rel="icon" type="image/x-icon" /> 
  <link href="images/favicon.ico?v=0.1" mce_href="http://www.sharesmile.cn/favicon.ico" rel="shortcut icon" type="image/x-icon" /> 
  <script type="text/javascript" src="__PUBLIC__/home/js/jq.js"></script> 
  <script type="text/javascript" src="__PUBLIC__/home/js/ss.js"></script> 
  <script type="text/javascript">
function getBrowser()
{  
   var OsObject = "";  
   if(navigator.userAgent.indexOf("MSIE")>0) {  
        var browser=navigator.appName;
        var b_version=navigator.appVersion; 
        var version=b_version.split(";"); 
        var trim_Version=version[1].replace(/[ ]/g,""); 
        if(browser=="Microsoft Internet Explorer" && trim_Version=="MSIE6.0") 
        { 
            return("IE6"); 
        } 
        else if(browser=="Microsoft Internet Explorer" && trim_Version=="MSIE7.0") 
        { 
            return("IE7"); 
        } 
        else if(browser=="Microsoft Internet Explorer" && trim_Version=="MSIE8.0") 
        { 
            return("IE8"); 
        } 
        else if(browser=="Microsoft Internet Explorer" && trim_Version=="MSIE9.0") 
        { 
            return("IE9"); 
        }
        else if(browser=="Microsoft Internet Explorer" && trim_Version=="MSIE10.0") 
        { 
            return("IE10"); 
        }
   }  
   if( navigator.userAgent.indexOf("Firefox")>0){  
        return "Firefox";  
   }
   if( navigator.userAgent.indexOf("Chrome")>0){  
        return "Chrome";  
   }
   if( navigator.userAgent.indexOf("Opera")>0){  
        return "Opera";  
   } 
   if( navigator.userAgent.indexOf("Safari")>0) {  
        return "Safari";  
   }
   return 'Others';  
} 
(function(){
    vars = {};
    vars.browser = getBrowser();
    vars.hello_ketty = "heimao";
    vars.jsUrl = "http://www.sharesmile.cn/js/";
    vars.homeUrl = 'http://www.sharesmile.cn/';
    vars.siteName = '享笑网 - www.ShareSmile.cn - 享你所想,享你所笑';
    vars.publicUrl = "/public/";
    vars.showgirlUrl = "/user#showgirl";
    vars.userid = '';
    vars.username = '享笑观众';
    vars.nickname = '享笑观众';
    vars.gender = 0;
    vars.PHPSESSID = "3qtfvrs5dj7fje5e4psk15k4c2";
    vars.ajaxSubmiting = false;
    vars.sysImageUrl = '/public/system/';
    vars.qingImageUrl = '/public/qing/';
    vars.headImageUrl = '/public/userhead/';
    vars.postImageUrl = '/public/post/';
    vars.essayImageUrl = '/public/essay/';
    vars.jokesImageUrl = '/public/jokes/';
    vars.showgirlImageUrl = '/public/showgirl/';
    vars.photoImageUrl = '/public/photo/';
    vars.commStatUrl = '/Stat/stat';
    vars.cookieUMessage = 'HASMESSAGE'+vars.userid;
    vars.voteBlankColor = new Array( '#5DBBEF', '#95E62A', '#CC1CD9', '#FFCD10', '#F79395');
    var d = new Date();
    vars.todayTimeString = 20160122;
})();
</script>
  <link rel="stylesheet" type="text/css" href="__PUBLIC__/home/css/login.css" /> 
 </head> 
 <body> 
  <img class="log-bg" src="__PUBLIC__/home/images/bg1.jpg" alt="享笑网LOGO" /> 
  <div class="log-container"> 
   <div class="log-main pb-after-clear pb-opac90"> 
    <div class="log-box pb-after-clear"> 
     <div class="log-logo pb-login pb-fl"> 
      <a title="前往享笑网首页" href="index.html"><i class="pb-icons logo"></i></a> 
     </div> 
     <div class="log-fields pb-fr pb-login"> 
      <form id="user-login-form" action="" method="post"> 
       <table cellspacing="0" cellpadding="0" class="pb-login"> 
        <tbody> 
         <tr> 
          <td> <h3>登录</h3> &nbsp;&nbsp;|&nbsp;&nbsp; 没有账号？ <a href="{:U('Login/register')}">立即注册</a> </td> 
         </tr> 
         <tr> 
          <td> <input class="txt {required:true,isUserName:true,minlength:5}" placeholder="账号" name="name"   maxlength="32" /> <br /><span id="spand" class="pb-error pb-hide">未完成</span> </td> 
         </tr>
         <tr> 

          <td> <input class="pb-mt15 txt" placeholder="密码" name="password" id="LoginForm_password" type="password" /></td> 
         </tr> 
         <tr> 
          <td> <input id="ytLoginForm_rememberMe" type="hidden" value="0" name="rememberMe" /><a href="">找回密码</a> </td> 
         </tr> 
         <tr> 
          <td><a href="javascript:void(0);"><button type="button" id="sub" class="pb-icons pb-mt15"><u>登录</u></button></a></td> 
         </tr> 
         <tr> 
          <td> <span class="pb-iblock pb-mt20">使用合作账号直接注册</span> <br /> <a class="pb-mt10 pb-iblock" href="/site/qqlogin"> <i class="pb-icons qq"></i> </a> &nbsp; <a class="pb-mt10 pb-iblock" href="/site/weibologin"> <i class="pb-icons weibo"></i> </a> </td> 
         </tr> 
        </tbody> 
       </table> 
      </form> 
     </div> 
     <script>
 commonLib.fixPlaceholder();
 </script> 
    </div> 
   </div> 
  </div> 
  <script language="javascript" type="text/javascript" src="__PUBLIC__/home/js/15502332.js"></script> 
  <!-- Baidu Button BEGIN --> 
  <script type="text/javascript" id="bdshare_js" data="type=slide&amp;img=8&amp;pos=right&amp;uid=6614812"></script> 
  <script type="text/javascript" id="bdshell_js"></script> 
  <script type="text/javascript">
    document.getElementById("bdshell_js").src = "http://bdimg.share.baidu.com/static/js/shell_v2.js?cdnversion=" + Math.ceil(new Date()/3600000);
    </script> 
  <!-- Baidu Button END --> 
  <script type="text/javascript" language="javascript">
    $(document).ready(function(){
  $("#sub").click(function(){
    var username   = $("input[name='name']").val();
    var password   = $("input[name='password']").val();
    if ($("input[name='name']").val() == '' || $("input[name='password']").val() == '') {
      $("#spand").html('账号密码不能为空').show();
      return false;
    };
    $.post("{:U('Login/login')}",{username:username,password:password},function(data){
      if (data == 1) {
        alert('异常错误,请重新登录');
        return false;

      }else if (data == 2) {
        $("#spand").html('用户不存在').show();
        return false;

      }else if (data == 3) {
        $("#spand").html('对不起你的账号被禁用,请联系管理员').show();
        return false;

      }else if (data == 4) {
        $("#spand").html('密码错误').show();
        return false;
      }else {
        var res = data.substr(0,1);
        var url = data.substring(2);
        if (res == 5) {
          window.location.href = url;
        };
      };     
    });
  });
});
  </script>  
 </body>
</html>